From 7d1d6dcabb8e8d84996e153d7a7f3d10607ec106 Mon Sep 17 00:00:00 2001 From: "awilliam@xenbuild.aw" Date: Thu, 6 Jul 2006 11:06:06 -0600 Subject: [PATCH] [IA64] #ifdef out unused mca_asm.S code Make ia64_os_mca_dispatch spin Signed-off-by: Akio Takebe [Changed from deleting code to #ifdef'ing it out] Signed-off-by: Alex Williamson --- xen/arch/ia64/linux-xen/mca_asm.S | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/xen/arch/ia64/linux-xen/mca_asm.S b/xen/arch/ia64/linux-xen/mca_asm.S index ef3fd7265b..2f9e98d3ec 100644 --- a/xen/arch/ia64/linux-xen/mca_asm.S +++ b/xen/arch/ia64/linux-xen/mca_asm.S @@ -59,6 +59,7 @@ st8 [_tmp]=r17,0x08;; \ st8 [_tmp]=r18,0x08 +#ifndef XEN /* * OS_MCA_TO_SAL_HANDOFF_STATE (SAL 3.0 spec) * (p6) is executed if we never entered virtual mode (TLB error) @@ -106,15 +107,19 @@ ;; \ ld8 reg=[reg] +#endif /* !XEN */ .global ia64_os_mca_dispatch .global ia64_os_mca_dispatch_end .global ia64_sal_to_os_handoff_state +#ifndef XEN .global ia64_os_to_sal_handoff_state .global ia64_do_tlb_purge +#endif .text .align 16 +#ifndef XEN /* * Just the TLB purge part is moved to a separate function * so we can re-use the code for cpu hotplug code as well @@ -856,6 +861,12 @@ end_os_mca_restore: br ia64_os_mca_done_restore;; //EndStub////////////////////////////////////////////////////////////////////// +#else +ia64_os_mca_dispatch: +1: + br.sptk 1b +ia64_os_mca_dispatch_end: +#endif /* !XEN */ // ok, the issue here is that we need to save state information so -- 2.30.2